

<!DOCTYPE html>

<html>
<head>
  <meta charset="utf-8">
  <title><?php echo $this->pageTitle; ?></title> 
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
        <script>
            var bathurl = '<?php echo Yii::app()->request->hostInfo ?>';
        </script> 
  <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="../../res/layui/css/layui.css">
  <link rel="stylesheet" href="../../res/css/global.css">
</head>
<body>

<div class="header">
  <div class="main">
    <a class="logo" href="/" title="Fly">Fly社区</a>
    <div class="nav">
      <a class="nav-this" href="index.html">
        <i class="iconfont icon-wenda"></i>问答
      </a>
      <a href="http://www.layui.com/" target="_blank">
        <i class="iconfont icon-ui"></i>框架
      </a>
    </div>
        <div class="nav-user">      
    <?php if(Yii::app()->user->IsGuest):?>
      <a class="unlogin" href="/user/login"><i class="iconfont icon-touxiang"></i></a>
      <span><a href="/user/login">登入</a><a href="/user/signup">注册</a></span>
      <p class="out-login">
        <a href="" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-qq" title="QQ登入"></a>
        <a href="" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-weibo" title="微博登入"></a>
      </p>   
    <?php else:?>

      <!-- 登入后的状态 -->
      <a class="avatar" href="<?php echo $this->createUrl('/userinfo/detail');?>">

        <img src="http://tp4.sinaimg.cn/1345566427/180/5730976522/0">

        <cite><?php echo Yii::app()->user->getId()?></cite>
        <i>VIP2</i>
      </a>
      <div class="nav">
        <a href="/userinfo/detail"><i class="iconfont icon-shezhi"></i>设置</a>
        <a href="/user/logout"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
      </div>
      
 
    <?php endif;?>
   </div>

  </div>
</div>

        <div class="mian_cotainer">
            <?php echo $content; ?>
        </div>
        
        <div style="display: none">
            <script src="https://s19.cnzz.com/z_stat.php?id=1264493789&web_id=1264493789" language="JavaScript"></script>
        </div>

        <div class="footer">
          <p><a href="http://fly.layui.com/">Fly社区</a> 2017 &copy; <a href="http://www.layui.com/">layui.com</a></p>
          <p>
            <a href="http://fly.layui.com/auth/get" target="_blank">产品授权</a>
            <a href="http://fly.layui.com/jie/8157.html" target="_blank">获取Fly社区模版</a>
            <a href="http://fly.layui.com/jie/2461.html" target="_blank">微信公众号</a>
          </p>
        </div>

    </body>

<script src="../../res/layui/layui.js"></script>

</html>
